<?php if (count($this->params->menu_items) >= 0): ?>

<ul id="menu_<?php echo $this->params->menu_name; ?>" class="menu<?php echo $this->params->css_suffix; ?>">
	
	<?php $i = 0; ?>
	
	<?php foreach($this->params->menu_items as $menu_item): ?>
	
	<?php $i++; ?>
	
	<?
		if ($i == 1)
		{
			$extra_css = "first";
		}
		else if ($i == count($this->params->menu_items))
		{
			$extra_css = "last";
		}
		else
		{
			$extra_css = "";
		}
	?>
	
	<li id="menu_item_<?php echo $i; ?>" class="menu_item<?php echo $this->params->css_suffix; ?> <?php echo $extra_css; ?>">
		<a href="<?php echo $menu_item->link; ?>"><?php echo $menu_item->name; ?></a>
	</li>

	<?php endforeach;?>

</ul>

<?php endif; ?>
